package com.mycloud.controller;

import com.mycloud.config.GirlConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by PC on 2019/1/10.
 */
@RestController
public class GirlController {

    @Autowired
    private GirlConfig girlConfig;


    @RequestMapping("/print")
    public String print() {
        return "name=" + girlConfig.getName() + "age=" + girlConfig.getAge();
    }
}
